﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace VideoCall
{
    public partial class FrmShowCall : Form
    {
        public string username = "";
        public FrmShowCall()
        {
            InitializeComponent();
        }
        public delegate void Exit(string data);
        public event Exit Ex = null;
        public virtual void OnExit(string data)
        {
            if (Ex != null)
                Ex(data);
        }
        private void FrmShowCall_Load(object sender, EventArgs e)
        {
            this.label1.Text = "Đang Gọi "+username+" ...";
        }

        private void pictureBox2_Click(object sender, EventArgs e)
        {
            OnExit(username);
            this.Close();
        }
    }
}
